
REM check whether deploys is existing

tasklist.exe /s %1 | findstr /i "deploys"
if ERRORLEVEL 1 (
    exit /b 1 )

REM check whether filesystem is working

dir \\%1\c$
if ERRORLEVEL 1 (
    exit /b 1 )

echo REMOTE_HEALTH_TEMP > \\%1\c$\__REMOTE_HEALTH_TEMP__
if ERRORLEVEL 1 (
    exit /b 1 )
del \\%1\c$\__REMOTE_HEALTH_TEMP__

exit /b 0

